package com.mccken.designpattern.chain.chain1;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2023-01-02 14:39
 **/
public abstract class Handler {
	
	// 维持对下家的应用
	protected Handler successor;
	
	public void setSuccessor(Handler successor) {
		this.successor = successor;
	}
	
	public abstract void handleRequest(String request);
	
}
